$OpenBSD: patch-src_SHAHashSet_cpp,v 1.1 2012/10/25 07:59:45 dcoppa Exp $

Fix memory leak when AICH hashing already known files
(upstream git commit 9e62350fae9f24de64987a0cb002fdc15b5fa9af)

--- src/SHAHashSet.cpp.orig	Thu Oct 25 11:20:28 2012
+++ src/SHAHashSet.cpp	Thu Oct 25 11:21:07 2012
@@ -622,7 +622,6 @@ bool CAICHHashSet::ReadRecoveryData(uint64 nPartStartP
 }
 
 // this function is only allowed to be called right after successfully calculating the hashset (!)
-// will delete the hashset, after saving to free the memory
 bool CAICHHashSet::SaveHashSet()
 {
 	if (m_eStatus != AICH_HASHSETCOMPLETE) {
@@ -702,7 +701,6 @@ bool CAICHHashSet::SaveHashSet()
 		return false;
 	}
 			
-	FreeHashSet();
 	return true;
 }
 
